﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAO;
using DTO;

namespace BUS
{
    public class PhieuNhapHangBUS
    {    
        public List<PhieuNhapHangDTO> LayDanhSachPNH()
        {
            PhieuNhapHangDAO pnhDAO = new PhieuNhapHangDAO();
            return pnhDAO.LayDanhSachPNH();
        }
        public string ThemPhieuNhapHang(PhieuNhapHangDTO pnhDTO)
        {
            PhieuNhapHangDAO pnhDAO = new PhieuNhapHangDAO();
            return pnhDAO.ThemPhieuNhapHang(pnhDTO);
        }
        public int LayMaPhieuNhapHang()
        {
            PhieuNhapHangDAO pnhDAO = new PhieuNhapHangDAO();
            return pnhDAO.LayMaPhieuNhapHang();
        }

        //KHANG
        public List<PhieuNhapHangDTO> LayDanhSachPhieuNhapHang()
        {
            PhieuNhapHangDAO dao = new PhieuNhapHangDAO();
            return dao.LayDanhSachPhieuNhapHang();
        }
        public List<PhieuNhapHangDTO> Tra_cuu_phieu_nhap_hang(string maphieunhap, string tennhacungcap, DateTime tungay, DateTime denngay)
        {
            PhieuNhapHangDAO tracuu = new PhieuNhapHangDAO();
            return tracuu.Tra_cuu_phieu_nhap_hang(maphieunhap, tennhacungcap, tungay, denngay);
        }
        //END KHANG
    }
}

